package cn.xmoit.flowable.controller;

import cn.xmoit.flowable.model.Result;
import cn.xmoit.flowable.service.UserDetailsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fangyy
 */
@RestController
public class UserController {

	@Autowired
	UserDetailsServiceImpl userDetailsService;

	@GetMapping("/users")
	public Result getUsers() {
		return Result.ok("OK", userDetailsService.getAllUsers());
	}

}
